package com.ruoyi.common.api;

import java.util.List;

/*
泛型服务层，通用
 */
public interface IBaseService<T> {

    int deleteByPrimaryKey(String id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKeyWithBLOBs(T record);

    int updateByPrimaryKey(T record);

    List<T> selectByDocLike(String key, String userId);

    List<T> selectAll(String userId);

    List<T> selectByDocLikeAdmin(String key);

    List<T> selectAllAdmin();

}
